package me.gavin.base


operator fun Int.invoke() = this

inline operator fun Int.rem(blk: () -> Unit): Unit? {
    if (this !in (0..100)) error("Value must in (0..100)")
    return if (this != 0 && (1..100).random() <= this) blk() else null
}